package test5;

public class Main {
    public static void main(String[] args) {
        B b = new B();
        System.out.println("====================");
        B b1 = new B();
    }
}

class A{
    public A() {
        System.out.println("父类构造");
    }

    {
        System.out.println("父类实例");
    }

    static {
        System.out.println("父类静态");
    }
}

class B extends A{
    public B() {
        System.out.println("子类构造");
    }
    {
        System.out.println("子类实例");
    }
    static {
        System.out.println("子类静态");
    }
}